Skip to content

Conversation

@Ragini-Microsoft
Copy link
Contributor

Purpose

This pull request updates how user information is retrieved and displayed in the frontend, aligning it with Azure App Service authentication and simplifying the user info logic. The backend endpoint for user info is removed, and the frontend now directly consumes the Azure authentication endpoint. User display is improved by using the authenticated user's display name instead of parsing the user ID.

User Authentication and Display Improvements:

  • The frontend (App.tsx) now fetches user information directly from the Azure App Service built-in authentication endpoint (/.auth/me) instead of the removed /api/user backend endpoint. It extracts the user ID from the objectidentifier claim and the display name from the name claim.
  • The getUserInitials logic and the custom UserInfo interface are removed, and the Avatar component now displays the user's display name (if available) for a more accurate and user-friendly experience. [1] [2] [3]

Backend Cleanup:

  • The /api/user endpoint and related user info retrieval logic are removed from the backend (app.py), as user details are now sourced directly from Azure App Service authentication in the frontend.

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

@Avijit-Microsoft Avijit-Microsoft merged commit 3276729 into main Feb 3, 2026
5 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

🎉 This PR is included in version 1.8.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants